<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver DS18B20: ds18b20 advance driver function</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver DS18B20
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">DS18B20 full function driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__ds18b20__advance__driver.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ds18b20 advance driver function<div class="ingroups"><a class="el" href="group__ds18b20__driver.html">ds18b20 driver function</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>ds18b20 advance driver modules  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga3fe85125e859506571af01e6260cc29d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__advance__driver.html#ga3fe85125e859506571af01e6260cc29d">DS18B20_MAX_SEARCH_SIZE</a>&#160;&#160;&#160;64</td></tr>
<tr class="memdesc:ga3fe85125e859506571af01e6260cc29d"><td class="mdescLeft">&#160;</td><td class="mdescRight">ds18b20 max search size definition  <a href="group__ds18b20__advance__driver.html#ga3fe85125e859506571af01e6260cc29d">More...</a><br /></td></tr>
<tr class="separator:ga3fe85125e859506571af01e6260cc29d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gacdec4dca56e47a203832ffcd1d71b2f0"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__advance__driver.html#gacdec4dca56e47a203832ffcd1d71b2f0">ds18b20_scratchpad_set_alarm_threshold</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, int8_t threshold_high, int8_t threshold_low)</td></tr>
<tr class="memdesc:gacdec4dca56e47a203832ffcd1d71b2f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the alarm threshold in the scratchpad  <a href="group__ds18b20__advance__driver.html#gacdec4dca56e47a203832ffcd1d71b2f0">More...</a><br /></td></tr>
<tr class="separator:gacdec4dca56e47a203832ffcd1d71b2f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabe12d7ad8c1a4812239d2d85e0536a0d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__advance__driver.html#gabe12d7ad8c1a4812239d2d85e0536a0d">ds18b20_scrachpad_get_alarm_threshold</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, int8_t *threshold_high, int8_t *threshold_low)</td></tr>
<tr class="memdesc:gabe12d7ad8c1a4812239d2d85e0536a0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the alarm threshold in the scratchpad  <a href="group__ds18b20__advance__driver.html#gabe12d7ad8c1a4812239d2d85e0536a0d">More...</a><br /></td></tr>
<tr class="separator:gabe12d7ad8c1a4812239d2d85e0536a0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad27eacce4379fb8aa528645be258b698"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__advance__driver.html#gad27eacce4379fb8aa528645be258b698">ds18b20_alarm_convert_to_register</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, float temp, int8_t *reg)</td></tr>
<tr class="memdesc:gad27eacce4379fb8aa528645be258b698"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert the alarm temperature to the register data  <a href="group__ds18b20__advance__driver.html#gad27eacce4379fb8aa528645be258b698">More...</a><br /></td></tr>
<tr class="separator:gad27eacce4379fb8aa528645be258b698"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga11bfd128f97051bc0e2775bf6dda64f5"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__advance__driver.html#ga11bfd128f97051bc0e2775bf6dda64f5">ds18b20_alarm_convert_to_data</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, int8_t reg, float *temp)</td></tr>
<tr class="memdesc:ga11bfd128f97051bc0e2775bf6dda64f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert the register data to the alarm temperature  <a href="group__ds18b20__advance__driver.html#ga11bfd128f97051bc0e2775bf6dda64f5">More...</a><br /></td></tr>
<tr class="separator:ga11bfd128f97051bc0e2775bf6dda64f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7b1500ff71c4d2a2ba63825b639ae808"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__advance__driver.html#ga7b1500ff71c4d2a2ba63825b639ae808">ds18b20_search_rom</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, uint8_t(*rom)[8], uint8_t *num)</td></tr>
<tr class="memdesc:ga7b1500ff71c4d2a2ba63825b639ae808"><td class="mdescLeft">&#160;</td><td class="mdescRight">search the ds18b20 rom  <a href="group__ds18b20__advance__driver.html#ga7b1500ff71c4d2a2ba63825b639ae808">More...</a><br /></td></tr>
<tr class="separator:ga7b1500ff71c4d2a2ba63825b639ae808"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga384c1500974d1390b4113f5b474774e5"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__advance__driver.html#ga384c1500974d1390b4113f5b474774e5">ds18b20_search_alarm</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, uint8_t(*rom)[8], uint8_t *num)</td></tr>
<tr class="memdesc:ga384c1500974d1390b4113f5b474774e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">search the ds18b20 alarm rom  <a href="group__ds18b20__advance__driver.html#ga384c1500974d1390b4113f5b474774e5">More...</a><br /></td></tr>
<tr class="separator:ga384c1500974d1390b4113f5b474774e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga508a88dccd8b9b8ddbff04c7e867fd5f"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__advance__driver.html#ga508a88dccd8b9b8ddbff04c7e867fd5f">ds18b20_get_power_mode</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, <a class="el" href="group__ds18b20__base__driver.html#ga3804f6549e6eeb30fc781d36ebbf8fbd">ds18b20_power_mode_t</a> *power_mode)</td></tr>
<tr class="memdesc:ga508a88dccd8b9b8ddbff04c7e867fd5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the power mode  <a href="group__ds18b20__advance__driver.html#ga508a88dccd8b9b8ddbff04c7e867fd5f">More...</a><br /></td></tr>
<tr class="separator:ga508a88dccd8b9b8ddbff04c7e867fd5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>ds18b20 advance driver modules </p>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga3fe85125e859506571af01e6260cc29d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3fe85125e859506571af01e6260cc29d">&#9670;&nbsp;</a></span>DS18B20_MAX_SEARCH_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DS18B20_MAX_SEARCH_SIZE&#160;&#160;&#160;64</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ds18b20 max search size definition </p>
<p>max 64 devices </p>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8h_source.html#l00064">64</a> of file <a class="el" href="driver__ds18b20_8h_source.html">driver_ds18b20.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga11bfd128f97051bc0e2775bf6dda64f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga11bfd128f97051bc0e2775bf6dda64f5">&#9670;&nbsp;</a></span>ds18b20_alarm_convert_to_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_alarm_convert_to_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>temp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>convert the register data to the alarm temperature </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">reg</td><td>is the register data </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*temp</td><td>points to an alarm temperature buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l01278">1278</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="gad27eacce4379fb8aa528645be258b698"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad27eacce4379fb8aa528645be258b698">&#9670;&nbsp;</a></span>ds18b20_alarm_convert_to_register()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_alarm_convert_to_register </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>temp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t *&#160;</td>
          <td class="paramname"><em>reg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>convert the alarm temperature to the register data </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">temp</td><td>is the alarm temperature </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*reg</td><td>points to a register data </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l01251">1251</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="ga508a88dccd8b9b8ddbff04c7e867fd5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga508a88dccd8b9b8ddbff04c7e867fd5f">&#9670;&nbsp;</a></span>ds18b20_get_power_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_get_power_mode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga3804f6549e6eeb30fc781d36ebbf8fbd">ds18b20_power_mode_t</a> *&#160;</td>
          <td class="paramname"><em>power_mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get the power mode </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*power_mode</td><td>points to a power mode buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get power mode failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l01988">1988</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="gabe12d7ad8c1a4812239d2d85e0536a0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabe12d7ad8c1a4812239d2d85e0536a0d">&#9670;&nbsp;</a></span>ds18b20_scrachpad_get_alarm_threshold()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_scrachpad_get_alarm_threshold </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t *&#160;</td>
          <td class="paramname"><em>threshold_high</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t *&#160;</td>
          <td class="paramname"><em>threshold_low</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get the alarm threshold in the scratchpad </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*threshold_high</td><td>points to a high threshold buffer </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*threshold_low</td><td>points to a low threshold buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 scratchpad get alarm threshold failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l00958">958</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="gacdec4dca56e47a203832ffcd1d71b2f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacdec4dca56e47a203832ffcd1d71b2f0">&#9670;&nbsp;</a></span>ds18b20_scratchpad_set_alarm_threshold()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_scratchpad_set_alarm_threshold </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>threshold_high</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>threshold_low</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set the alarm threshold in the scratchpad </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">threshold_high</td><td>is the high threshold </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">threshold_low</td><td>is the low threshold </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 scratchpad set alarm threshold failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l00773">773</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="ga384c1500974d1390b4113f5b474774e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga384c1500974d1390b4113f5b474774e5">&#9670;&nbsp;</a></span>ds18b20_search_alarm()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_search_alarm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t(*)&#160;</td>
          <td class="paramname"><em>rom</em>[8], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>search the ds18b20 alarm rom </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">**rom</td><td>points to a rom array </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">*num</td><td>points to an array size buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 search alarm failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l01965">1965</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="ga7b1500ff71c4d2a2ba63825b639ae808"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7b1500ff71c4d2a2ba63825b639ae808">&#9670;&nbsp;</a></span>ds18b20_search_rom()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_search_rom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t(*)&#160;</td>
          <td class="paramname"><em>rom</em>[8], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>search the ds18b20 rom </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">**rom</td><td>points to a rom array </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">*num</td><td>points to an array size buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 search rom failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l01941">1941</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
